package cn.java.web.side.validate.controller;


import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

@RestController
@Validated
public class StudentController {

    @GetMapping("/student")
    public void findByCodeAndAuthor(@NotEmpty String code) {
        System.out.println("nihoa");
    }
}
